package com.wss.autodeliver.rest;

import com.netflix.appinfo.InstanceInfo;
import com.netflix.discovery.converters.Auto;
import com.wss.autodeliver.service.ResumeServiceFeignClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.client.ServiceInstance;
import org.springframework.cloud.client.discovery.DiscoveryClient;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.client.RestTemplate;

import java.util.List;

@RestController
@RequestMapping("/autodeliver")
public class AutodeliverController {




    @Autowired
    private ResumeServiceFeignClient resumeServiceFeignClient;

    @GetMapping("getPortLoadByOpenFeign")
    public String getPortLoadByOpenFeign(){
        String object = resumeServiceFeignClient.getPortLoadByHystrix();
        System.out.println(object);
        return  object;
    }


}
